<section>
    <div class="panel panel-default">
        <div class="panel-heading clearfix form-inline">
            <div class="pull-right">
                销售列表
                <input type="text" ng-model="parm.realName_like" class="form-control" placeholder="姓名模糊搜索">
                <button type="button" class="btn btn-default" ng-click="submit(1)">搜索</button>
            </div>
        </div>
        <table class="table table-bordered table-condensed">
            <thead>
            <tr>
                <th>#</th>
                <th>真实姓名</th>
                <th>上级</th>
                <th>电话</th>
                <th>销售类型</th>
                <th>销售码</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in sallerList" ng-click="chose(item.sellerId,item.realName)">
                <td>
                    {{item.sellerId}}
                </td>
                <td>
                    {{item.realName}}
                </td>
                <td>
                    {{item.parentRealName}}
                </td>
                <td>
                    {{item.phone}}
                </td>
                <td>
                    {{item.sellerType | sellType }}
                </td>
                <td>
                    {{item.sellerCode}}
                </td>
            </tr>
            </tbody>
        </table>

        <div class="panel-footer" style="text-align: center;">
            <uib-pagination style="margin:0;" ng-change="submit(parm.currentPage)" total-items="parm.totalSize"
                               ng-model="parm.currentPage"
                               items-per-page="parm.pageSize" max-size="5" class="pagination-sm" boundary-links="true"
                               rotate="false"></uib-pagination>
    </div>
    </div>
</section>

